package com.ks.user.controller;


import com.ks.core.base._ControllerBase;
import com.ks.core.core.Result;
import com.ks.core.dto.SearchCriteriaBase;
import com.ks.user.service.ILogOperatelogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>
 * 日志-用户日常操作记录 前端控制器
 * </p>
 *
 * @author kingdee123
 * @since 2020-12-30
 */
@RestController
@RequestMapping("/logOperatelog")
@Api(value = "用户操作日志模块", description = "用户操作日志模块")
public class LogOperatelogController extends _ControllerBase {
    @Autowired
    ILogOperatelogService logOperatelogService;

    @PostMapping("/selectLog")
    @ApiOperation(value = "操作日志查询接口",notes = "操作日志查询接口")
    public Object selectLog (@RequestBody SearchCriteriaBase searchCriteriaBase){
        Map<String,Object> resultMap =logOperatelogService.selectLog(getContext(),searchCriteriaBase);
        return Result.success(resultMap);
    }
}

